Generate a lockfile sooner in `cargo build`
authorAlex Crichton <alex@alexcrichton.com>
Wed, 3 Sep 2014 15:23:59 +0000 (08:23 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 3 Sep 2014 15:25:44 +0000 (08:25 -0700)
commit9f6234707bf16f2b51d913e0f3c50717468a68fc
tree2faec8909c386ad2e9e86747bfef2e1cb0771bca
parent3139954ceda3c62e311fe1e4956f554724195fea
Generate a lockfile sooner in `cargo build`

It's quite annoying if you update a dependency, but it takes you awhile to get
the dependency building. Previously the dependency graph would have to be
updated each time because the lockfile was only written *after* a successful
build.

Other tools like `cargo generate-lockfile` will already generate a lockfile at
any time, so just make it easier by moving it up in the compilation process.
src/cargo/ops/cargo_compile.rs
tests/test_cargo_compile.rs